from django.contrib import admin
from .models import Schools,Grades,Courses
# Register your models here.

class SchoolsAdmin(admin.ModelAdmin):
    list_display = ['name', 'school_id', 'content', 'deleted']
    list_filter = ['name']
    search_fields = ['name']
    list_per_page = 5

class CoursesAdmin(admin.ModelAdmin):
    list_display = ['name', 'course_id', 'deleted']
    list_filter = ['name']
    search_fields = ['name']
    list_per_page = 5

admin.site.register(Schools,SchoolsAdmin)
admin.site.register(Courses,CoursesAdmin)